<template>
    <div id="word" class="word">
<!--      <word-login v-show="showTab===1"></word-login>-->
<!--      <word-input></word-input>-->
<!--      <word-check-detail v-show="showTab===3"></word-check-detail>-->

<!--      <word-login></word-login>-->
<!--      <word-input></word-input>-->
<!--      <word-check-detail></word-check-detail>-->
<!--      <router-view></router-view>-->
    </div>
</template>

<script>
  import WordLogin from "./WordLogin";
  import WordInput from "./WordInput";
  import WordCheckDetail from "./WordCheckDetail";
  import Bus from '../course/bus';
  export default {
    name: "word",
    components:{
      // WordLogin,
      // WordInput,
      WordCheckDetail,
    },
    data() {
      return {
        // showTab:1,// 1登录 2填写，3详情
      }
    },
    methods: {

    },
    created() {
      //接收发送过来的数据
      Bus.$off('updateShowTab');//防止出现多次调用，在执行的时候需要卸掉
      Bus.$on('updateShowTab', number => {
        this.showTab = number;
      });

    },
  }
</script>

<style scoped>
  #word-input {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    margin-top: 2px;
    background-color: #f5f2f1;
  }
</style>

